#include <iostream>

using namespace std;

//嵌套循环:在循环体中再嵌套一层循环
int main() {
    //利用嵌套循环实现星图

    //外层执行一次，内层执行一周
    for (int i = 0; i < 10; i++) {//外层循环
        for (int j = 0; j < 10; j++) {//内层循环
            cout << "* ";
        }
        cout << endl;
    }
    return 0;
}
